﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;


// from: http://weblogs.asp.net/manavi/archive/2011/05/17/associations-in-ef-4-1-code-first-part-6-many-valued-associations.aspx
namespace AugustaDevelopersGuild.Models
{
    public class Post
    {
        public int PostID { get; set; }
        public int ForumID { get; set; }
        public int? ParentPostID { get; set; }

        public DateTime AddedDate { get; set; }
        public string AddedBy { get; set; }
        public string Title { get; set; }
        public string Body { get; set; }

        public virtual Forum Forum { get; set; }
        public virtual Post ParentPost { get; set; }
        public virtual ICollection<Post> ChildPosts { get; set; }
    }
}